// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
import store from './store'
import cjcAPI from './cjcAPI'
import iview from './ivewInstall.js'
import './libs/iview/styles/index.less'
import draggable from 'vuedraggable'
import App from './App.vue'
import {
    Group,
    XInput,
    Cell,
    Card,
    // DatetimeRange,
    // Datetime,
    PopupPicker,
    // XTextarea,
    Grid,
    GridItem,
    XButton,
    // Search,
    // Checklist,
    // Qrcode,
    Spinner,
    Flexbox,
    FlexboxItem,
    AlertPlugin,
    Alert,
    Confirm,
    ToastPlugin,
    LoadingPlugin
} from 'vux'
import cjcIcon from './components/common/icon.vue'
// 插件引入
Vue.use(AlertPlugin)
Vue.use(ToastPlugin)
Vue.use(LoadingPlugin)
Vue.use(draggable)
// 组件引入
Vue.component('draggable', draggable)
Vue.component('group', Group)
Vue.component('XInput', XInput)
Vue.component('cell', Cell)
Vue.component('card', Card)
// Vue.component('DatetimeRange', DatetimeRange)
// Vue.component('Datetime', Datetime)
Vue.component('PopupPicker', PopupPicker)
// Vue.component('XTextarea', XTextarea)
Vue.component('Grid', Grid)
Vue.component('GridItem', GridItem)
Vue.component('XButton', XButton)
// Vue.component('Search', Search)
// Vue.component('Checklist', Checklist)
// Vue.component('Qrcode', Qrcode)
Vue.component('Flexbox', Flexbox)
Vue.component('FlexboxItem', FlexboxItem)
Vue.component('Alert', Alert)
Vue.component('Confirm', Confirm)
Vue.component('Spinner', Spinner)
Vue.component('cjcIcon', cjcIcon)
// cjcJSapi载入
Vue.use(cjcAPI)
Vue.use(iview)
// 生产模式下是否提示
Vue.config.productionTip = false

/* eslint-disable */
new Vue({
    el: '#app',
    components: {
        App
    },
    template: '<App/>',
    router,
    store,
    beforeCreate() {
        this.$cjc.viewInit()
    }
})
